package cn.edu.xhu.library_management.common.entity;

/**
 * @Author: MMJ
 * @Date: 2022 - 08 - 31
 * @Description: 类型枚举 1书架 2座位
 */
public enum ItemType {
    BOOKRACK("书架",1),CHAIR("座椅",2),OTHER("其它",3);

    private String name;
    private int code;

    ItemType(String name, int code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "ItemType{" +
                "name='" + name + '\'' +
                ", code=" + code +
                '}';
    }
}
